﻿using System;

namespace Microsoft.Coding4Fun.TweetCraft
{
    public interface IErrorHandler
    {
        /// <summary>
        /// Called when an error occurs.
        /// </summary>
        /// <param name="sender">The sender of the error.</param>
        /// <param name="e">The event arguments that contains the <see cref="Exception"/> that describes the error.</param>
        void OnError(object sender, ErrorEventArgs e);
    }
}
